<?php
require "./common/function.php";
require "./config/common.php";

$id = $_REQUEST['id'];
$sql="update t_product set status=1 where id='$id'";
$result = getMySql($sql,'更新商品状态失败');
if($result){
    $a = productUrl;
    $msg=[true,'删除商品成功'];
    require "./html/right.html";
}else{
    $a = productUrl;
    $msg=[true,'删除商品失败'];
    require "./html/right.html";
}
